import java.util.Scanner;

/**
 *
 输入一个单向链表和一个节点的值，从单向链表中删除等于该值的节点，删除后如果链表中无节点则返回空指针。
 *
 *
 * @author: YuanChilde
 * @date: 2020-02-17 8:01
 * @version: 1.0
 * Modification History:
 * Date    Author      Version     Description
 * -----------------------------------------------------------------
 * 2020-02-17 8:01    YuanChilde     1.0        新增
 */
public class Demo21 {


    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String input = sc.nextLine();
        int lenPoint = 0;
        int numPoint = 0;
        int charPoint = 0;
        int otherPoint = 0;
        int rewardPoint = 0;

        char[] ch = input.toCharArray();
        if (ch.length<=4){
            lenPoint=5;
        }else if (ch.length>=5&&ch.length<=7){
            lenPoint=10;
        }else if (ch.length>=8){
            lenPoint=25;
        }

        int numCount = 0;
        int upperCount = 0;
        int lowerCount = 0;
        int otherCount = 0;

        for(int i = 0;i<ch.length;i++){
            if (ch[i]>='0' && ch[i]<='9'){
                numCount++;
            }else if (ch[i]>='a'&&ch[i]<='z'){
                lowerCount++;
            }else if (ch[i]>='A'&&ch[i]<='Z'){
                upperCount++;
            }else{
                otherCount++;
            }
        }

        if(lowerCount != 0 && upperCount != 0){
            charPoint = 20;
        }else if (lowerCount>0 || upperCount >0){
            charPoint = 10;
        }
        if(numCount == 1){
            numPoint = 10;
        }else if (numCount >1){
            numPoint = 20;
        }
        if(otherCount == 1){
            otherPoint = 10;
        }else if (otherCount >1){
            otherPoint = 25;
        }

        if(lowerCount>0&&upperCount>0&&numCount>0&&otherCount>0){
            rewardPoint = 5;
        }else if (numCount>0&&otherCount>0&&(upperCount>0||lowerCount>0)){
            rewardPoint = 3;
        }else if (numCount>0&&(upperCount>0||lowerCount>0)){
            rewardPoint = 2;
        }

        int totalPoint = lenPoint + charPoint + numPoint + otherPoint + rewardPoint;
        String result = "";
        if(totalPoint>=90){
            result = "VERY_SECURE";
        }else if(totalPoint>=80){
            result = "SECURE";
        }else if(totalPoint>=70){
            result = "VERY_STRONG";
        }else if(totalPoint>=60){
            result = "STRONG";
        }else if(totalPoint>=50){
            result = "AVERAGE";
        }else if(totalPoint>=25){
            result = "Weak";
        }else if(totalPoint>=0){
            result = "VERY_WEAK";
        }
        System.out.println(result);
    }
}
